
.switchbox-map-content {
  width: 100%;
  height: 100%;
  position: relative;
  background: #fff;
  #switchbox-map {
    width: 100%;
    height: 100%;
    .leaflet-bottom.leaflet-right {
      display: none;
    }
  }
  .tree-container {
    height: calc(100% - 48px);
    padding: 10px;
    background: var(--bg-color);
    .el-tree {
      height: 100%;
      overflow-y: auto;
      background: var(--bg-color);
      color: var(--text-color);
      .el-tree-node__content:hover {
        background: var(--bg-hover-color);
      }
      .el-button {
        padding: 0;
      }
    }
    .custom-tree-node {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      font-size: 14px;
      & > img {
        width: 16px;
        height: 16px;
        margin-left: 10px;
        position: relative;
        top: 2px;
      }
      & > span {
        margin: 0 12px 0 8px;
      }
      &.current {
        background-color: #f5f7fa;
      }
      .node-actions {
        i {
          margin-left: 8px;
          color: #409EFF;
          cursor: pointer;
          &:hover {
            color: #66b1ff;
          }
          &.disabled {
            color: #c0c4cc;
            cursor: not-allowed;
          }
        }
      }
    }
  }
  .floating-panel {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 300px;
    height: 600px;
    background: var(--bg-color);
    box-shadow: 0 2px 12px 0 rgba(0,0,0,.1);
    z-index: 1000;
    .panel-header {
      padding: 10px;
      font-weight: bold;
      border-bottom: 1px solid var(--border-color);
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-color);
      .close-btn {
        cursor: pointer;
        &:hover {
          color: var(--color-primary);
        }
      }
    }
    .custom-list {
      width: 100%;
      height: calc(100% - 40px);
      overflow: auto;
      color: var(--text-color);
      padding: 0 8px;
      .list-header {
        display: flex;
        border-bottom: 1px solid var(--border-color);
        .header-item {
          padding: 8px;
          flex: 1;
          font-weight: bold;
        }
      }
      .list-body {
        height: calc(100% - 44px);
        overflow-y: auto;
        .list-row {
          display: flex;
          cursor: pointer;
          font-size: 13px;
          &:hover {
            background: var(--bg-color-secondary);
          }
          .row-item {
            padding: 8px;
            flex: 1;
            border-bottom: 1px solid var(--border-color-light);
          }
        }
      }
    }
  }
}